﻿// This File is part of Innovation Foundry's "QualityHelper Project"
//
// Copyright  2009 Innovation Foundry Pty Ltd
// All rights reserved
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the
// Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA  02110-1301 USA
// or alternatively it may be downloaded from <http://www.gnu.org/licenses/>.

using System;
using System.Net;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Controls;

namespace InnovationFoundry.QualityHelper.Silverlight.Assets.Resources
{
    public static class BitmapResources
    {
        
        public static readonly Uri UriPDF = new Uri("Resources/acroread.png", UriKind.Relative);
        public static readonly Uri UriAudio = new Uri("Resources/arts.png", UriKind.Relative);
        public static readonly Uri UriURL = new Uri("Resources/browser.png", UriKind.Relative);
        public static readonly Uri UriVideo = new Uri("Resources/camera.png", UriKind.Relative);
        public static readonly Uri UriText = new Uri("Resources/knewsticker.png", UriKind.Relative);
        public static readonly Uri UriUnknown = new Uri("Resources/ksplash.png", UriKind.Relative);
        public static readonly Uri UriPicture = new Uri("Resources/kpaint.png", UriKind.Relative);
        public static readonly Uri UriWin = new Uri("Resources/win_apps.png", UriKind.Relative);
        public static readonly Uri UriNone = new Uri("Resources/fileclose.png", UriKind.Relative);

        private static BitmapImage bmpPDF;
        private static BitmapImage bmpAudio;
        private static BitmapImage bmpURL;
        private static BitmapImage bmpVideo;
        private static BitmapImage bmpText;
        private static BitmapImage bmpUnknown;
        private static BitmapImage bmpPicture;
        private static BitmapImage bmpWin;
        private static BitmapImage bmpNone;


        public static BitmapImage BmpNone
        {
            get
            {
                if (bmpNone == null)
                {
                    bmpNone = new BitmapImage();
                    bmpNone.UriSource = UriNone;
                }
                return bmpNone;
            }
        }

        public static BitmapImage BmpWin
        {
            get
            {
                if (bmpWin == null)
                {
                    bmpWin = new BitmapImage();
                    bmpWin.UriSource = UriWin;
                }
                return bmpWin;
            }
        }


        public static BitmapImage BmpPDF
        {
            get
            {
                if (bmpPDF == null)
                {
                    bmpPDF = new BitmapImage();
                    bmpPDF.UriSource = UriPDF;
                }
                return bmpPDF;
            }
        }

        public static BitmapImage BmpURL
        {
            get
            {
                if (bmpURL == null)
                {
                    bmpURL = new BitmapImage();
                    bmpURL.UriSource = UriURL;
                }
                return bmpURL;
            }
        }

        public static BitmapImage BmpVideo
        {
            get
            {
                if (bmpVideo == null)
                {
                    bmpVideo = new BitmapImage();
                    bmpVideo.UriSource = UriVideo;
                }
                return bmpVideo;
            }
        }

        public static BitmapImage BmpAudio
        {
            get
            {
                if (bmpAudio == null)
                {
                    bmpAudio = new BitmapImage();
                    bmpAudio.UriSource = UriAudio;
                }
                return bmpAudio;
            }
        }

        public static BitmapImage BmpText
        {
            get
            {
                if (bmpText == null)
                {
                    bmpText = new BitmapImage();
                    bmpText.UriSource = UriText;
                }
                return bmpText;
            }
        }

        public static BitmapImage BmpUnknown
        {
            get
            {
                if (bmpUnknown == null)
                {
                    bmpUnknown = new BitmapImage();
                    bmpUnknown.UriSource = UriUnknown;
                }
                return bmpUnknown;
            }
        }

        public static BitmapImage BmpPicture
        {
            get
            {
                if (bmpPicture == null)
                {
                    bmpPicture = new BitmapImage();
                    bmpPicture.UriSource = UriPicture;
                }
                return bmpPicture;
            }
        }

    }
}
